package com.wang.springframework.context;

import java.util.EventListener;

/**
 * @author wangjianhua
 * @Description 这是一个被application event listeners.实现的接口
 * 依赖于java.util包下的EventListener(jdk源码描述:A tagging interface that all event listener interfaces must extend.)
 * @date 2021/8/30/030 21:48
 */
public interface ApplicationListener<E extends ApplicationEvent> extends EventListener {

    /**
     * 处理一个application的event
     * @param event  event
     */
    void onApplicationEvent(E event);
}
